import 'package:flutter/material.dart';

class MyApp8 extends StatelessWidget {
  const MyApp8({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('布局组件使用', style: TextStyle(color: Colors.white),),
        backgroundColor: Colors.purple,
        centerTitle: true,
      ),
      body: Center(
        child: Container(
          width: 300,
          height: 400,
          padding: const EdgeInsets.all(0),
          color: Colors.cyan,
          child: Column(
            // 设置主轴的对齐方式
            mainAxisAlignment: MainAxisAlignment.center,
            // 设置 侧轴的对齐方式
            crossAxisAlignment: CrossAxisAlignment.center,

            children: [
              Image.network('https://yanxuan-item.nosdn.127.net/72e734dd1a4d35ce650afebdaa600b57.png', width: 250, ),
              const Text('美妆效果嘎嘎不卡粉末面刷'),
              const Text('¥999.90')
            ],
          ),
        ),
      ),
    );
  }
}